package com.ktjy.Dao.impl;

import com.ktjy.Dao.NewsDao;
import com.ktjy.Dao.NewsService;
import com.ktjy.factory.SimpleDaoFactory;
import com.ktjy.pojo.News;


public class NewServiceImpl implements NewsService {

    private NewsDao dao;

    @Override
    public void setDao(NewsDao dao) {
        this.dao = dao;
    }

    @Override
    public void addNews(News news) {
        dao.save(news);
    }
}
